﻿#region zh-CHS 2006 - 2010 DemoSoft 团队 | en 2006-2010 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
//
//                              2006-2010 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/


#region zh-CHS 包含名字空间 | en Include namespace
using System;
using Demo.Mmose.Core.Entity.Item;
#endregion

namespace Demo.Mmose.Core.Entity.Creature.Suit
{
    #region zh-CHS 共有的事件数据类 | en Public EventArgs Class
    /// <summary>
    /// BaseActionBarManager的事件数据类
    /// </summary>
    public class ActionBarManagerEventArgs<T> : EventArgs where T : BaseActionBar
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public ActionBarManagerEventArgs( ActionBarManager<T> actionBarManager )
        {
            m_ActionBarManager = actionBarManager;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// BaseWorld的数据
        /// </summary>
        private ActionBarManager<T> m_ActionBarManager = null;
        #endregion
        /// <summary>
        /// BaseWorld实例
        /// </summary>
        public ActionBarManager<T> ActionBarManager
        {
            get { return m_ActionBarManager; }
        }
        #endregion
    }

    /// <summary>
    /// BaseActionBarManager的事件数据类
    /// </summary>
    public class AddingActionBarCallEventArgs<T> : ActionBarManagerEventArgs<T> where T : BaseActionBar
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddingActionBarCallEventArgs( T actionBar, ActionBarManager<T> actionBarManager ) :
            base( actionBarManager )
        {
            m_AddActionBar = actionBar;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddActionBar = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddActionBar
        {
            get { return m_AddActionBar; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
            set { m_IsCancel = value; }
        }
        #endregion
    }

    /// <summary>
    /// BaseActionBarManager的事件数据类
    /// </summary>
    public class AddedActionBarCallEventArgs<T> : ActionBarManagerEventArgs<T> where T : BaseActionBar
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddedActionBarCallEventArgs( T actionBar, ActionBarManager<T> actionBarManager ) :
            base( actionBarManager )
        {
            m_AddActionBar = actionBar;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddActionBar = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddActionBar
        {
            get { return m_AddActionBar; }
        }
        #endregion
    }

    /// <summary>
    /// BaseActionBarManager的事件数据类
    /// </summary>
    public class RemovingActionBarCallEventArgs<T> : ActionBarManagerEventArgs<T> where T : BaseActionBar
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovingActionBarCallEventArgs( T actionBar, ActionBarManager<T> actionBarManager ) :
            base( actionBarManager )
        {
            m_RemoveActionBar = actionBar;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveActionBar = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveActionBar
        {
            get { return m_RemoveActionBar; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
            set { m_IsCancel = value; }
        }
        #endregion
    }

    /// <summary>
    /// BaseActionBarManager的事件数据类
    /// </summary>
    public class RemovedActionBarCallEventArgs<T> : ActionBarManagerEventArgs<T> where T : BaseActionBar
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovedActionBarCallEventArgs( T actionBar, ActionBarManager<T> actionBarManager ) :
            base( actionBarManager )
        {
            m_RemoveActionBar = actionBar;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveActionBar = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveActionBar
        {
            get { return m_RemoveActionBar; }
        }
        #endregion
    }

    /// <summary>
    /// BaseCreature的事件数据类
    /// </summary>
    public class BagManagerEventArgs<T, V> : EventArgs
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public BagManagerEventArgs( BagManager<T, V> bagManager )
        {
            m_BagManager = bagManager;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// BaseWorld的数据
        /// </summary>
        private BagManager<T, V> m_BagManager = null;
        #endregion
        /// <summary>
        /// BaseWorld实例
        /// </summary>
        public BagManager<T, V> BagManager
        {
            get { return m_BagManager; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class AddingItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddingItemContainerCallEventArgs( T itemContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_AddItemContainer = itemContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddItemContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddItemContainer
        {
            get { return m_AddItemContainer; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
            set { m_IsCancel = value; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class AddedItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddedItemContainerCallEventArgs( T itemContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_AddItemContainer = itemContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddItemContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddItemContainer
        {
            get { return m_AddItemContainer; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class RemovingItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovingItemContainerCallEventArgs( T itemContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_RemoveItemContainer = itemContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveItemContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveItemContainer
        {
            get { return m_RemoveItemContainer; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
            set { m_IsCancel = value; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class RemovedItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovedItemContainerCallEventArgs( T itemContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_RemoveItemContainer = itemContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveItemContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveItemContainer
        {
            get { return m_RemoveItemContainer; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class SwapingItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public SwapingItemContainerCallEventArgs( long srcItemSlot, T srcContainer, long dstItemSlot, T dstContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_SrcItemSlot = srcItemSlot;
            m_SrcContainer = srcContainer;

            m_DstItemSlot = dstItemSlot;
            m_DstContainer = dstContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private long m_SrcItemSlot = 0;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public long SrcItemSlot
        {
            get { return m_SrcItemSlot; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_SrcContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T SrcContainer
        {
            get { return m_SrcContainer; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private long m_DstItemSlot = 0;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public long DstItemSlot
        {
            get { return m_DstItemSlot; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_DstContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T DstContainer
        {
            get { return m_DstContainer; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
            set { m_IsCancel = value; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class SwapedItemContainerCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public SwapedItemContainerCallEventArgs( long srcItemSlot, T srcContainer, long dstItemSlot, T dstContainer, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_SrcItemSlot = srcItemSlot;
            m_SrcContainer = srcContainer;

            m_DstItemSlot = dstItemSlot;
            m_DstContainer = dstContainer;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private long m_SrcItemSlot = 0;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public long SrcItemSlot
        {
            get { return m_SrcItemSlot; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_SrcContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T SrcContainer
        {
            get { return m_SrcContainer; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private long m_DstItemSlot = 0;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public long DstItemSlot
        {
            get { return m_DstItemSlot; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_DstContainer = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T DstContainer
        {
            get { return m_DstContainer; }
        }
        #endregion
    }

    /// <summary>
    /// BaseBagManager的事件数据类
    /// </summary>
    public class LostItemCallEventArgs<T, V> : BagManagerEventArgs<T, V>
        where T : ItemContainer<V>
        where V : ItemBase
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public LostItemCallEventArgs( V item, BagManager<T, V> bagManager ) :
            base( bagManager )
        {
            m_LostItem = item;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private V m_LostItem = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public V LostItem
        {
            get { return m_LostItem; }
        }
        #endregion
    }


    #endregion
}
#endregion